﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nop.Services.Common
{
    public static class MathEx
    {
        public static decimal Round(decimal d)
        {
            return Round(d, 2);
        }

        public static decimal Round(decimal d, int decimals)
        {
            return Math.Round(d, decimals, MidpointRounding.AwayFromZero);
        }
    }
}
